package io.renren.modules.reception.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.renren.modules.reception.entity.vo.FoodVo;
import lombok.Data;
import org.joda.time.DateTime;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 
 * 
 * @author steakliu
 * @email 2319492349@qq.com
 * @date 2021-03-02 23:17:55
 */
@Data
@TableName("t_store_reserve_desk")
public class TStoreReserveDeskEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 主键
	 */
	@TableId
	private Long id;
	/**
	 * 租户
	 */
	private Long sellerId;
	/**
	 * 预定编号
	 */
	private String reserveNo;
	/**
	 * 消费者姓名
	 */
	private String customerName;
	/**
	 * 电话
	 */
	private String customerTel;
	/**
	 * 人数
	 */
	private Integer peopleNum;
	/**
	 * 时间
	 */
	private Date time;
	/**
	 * 预定时间
	 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date reserveTime;
	/**
	 * 预定保留时间
	 */
	private Double keepTime;
	/**
	 * 是否收取押金
	 */
	private Integer depositStatus;
	/**
	 * 押金
	 */
	private Double deposit;

	/**
	 * 菜品总价
	 */
	private Double totalMoney;

	/**
	 * 是否预定菜品
	 */
	private Integer reserveFoodStatus;
	/**
	 * 菜品集合
	 */
	private String foodList;

	@TableField(exist = false)
	private List<FoodVo> foodVos = new ArrayList<>();
	/**
	 * 桌号
	 */
	private Long deskId;

	//餐台编号
	@TableField(exist = false)
	private String diningTableNo;

	//餐台所属餐厅类型
	@TableField(exist = false)
	private Long storeTypeId;

	//餐台状态
	@TableField(exist = false)
	private Integer deskStatus;

	@TableField(exist = false)
	private List<Long> deskIdList = new ArrayList<>();

	/**
	 * 状态(1正常2过期)
	 */
	private Integer status;
	/**
	 * 备注
	 */
	private String remark;

}
